/*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/

package zblibrary.facechat.modules.foundgood;

import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.os.Build;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.RequiresApi;
import androidx.fragment.app.Fragment;

import lingxi.module.main.FeedFragment;
import zblibrary.facechat.DEMO.DemoFragment;
import zblibrary.facechat.R;
import zblibrary.facechat.databinding.MainTabActivityBinding;
import zblibrary.facechat.modules.discuss.DiscussRecyclerFragment;
import zblibrary.facechat.modules.home.HomeFragment;
import zblibrary.facechat.modules.mine.MineFragment;
import zblibrary.facechat.modules.school.SchoolInfoFragment;
import zuo.biao.library.base.BaseActivity;
import zuo.biao.library.base.BaseBottomTabActivity;
import zuo.biao.library.interfaces.OnBottomDragListener;

public class FoundGoodActivity extends BaseActivity implements OnBottomDragListener{
	private static final String TAG = "FoundGoodActivity";
	private FoundGoodRecyclerFragment fragment;

	public static Intent createIntent(Context context) {
		return new Intent(context, FoundGoodActivity.class);
	}
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.found_good_activity, this);
		initView();
		initData();
		initEvent();
	}

	@Override
	public void initView() {// 必须调用
	}

	@Override
	public void initData() {//必须在onCreate方法内调用
		fragment = FoundGoodRecyclerFragment.createInstance();
		fragmentManager
				.beginTransaction()
				.add(R.id.found_fragment, fragment)
				.show(fragment)
				.commit();
	}

	@Override
	public void initEvent() {

	}

	@Override
	public void onDragBottom(boolean rightToLeft) {
		if (rightToLeft) {
			return;
		}
		finish();
	}
}